import commander from 'commander';
import { serve } from "."


commander.version('1.0')
    .option('--config')
    .action((name)=>{
        const config = require(name)
        serve(config)
    }).parse(process.argv)


// commander
//     .command('serve')
//     .description('launch web server')
//     .option('--config', 'web port')
//     .action((options) => {
//         console.log(`server on port ${options}`);
//     });

// commander
//     .command('start <service>', 'start named service')
//     .command('stop [service]', 'stop named service, or all if no name supplied')


// commander
//     .parse(process.argv);




